///////////////////////////////////////////////////////////
//  ViewCheckListCommand.cpp
//  Implementation of the Class ViewCheckListCommand
//  Created on:      21-Sep-2013 12:08:01 PM
//  Original author: Jakkaphan Aiemcharoenjit
///////////////////////////////////////////////////////////

#include "ViewCheckListCommand.h"
#include "CurrentCommand.h"

using namespace UI;
using namespace UI::CMD;

ViewCheckListCommand::ViewCheckListCommand(CPreviewDetailView* previewDetail, CCheckListView* checkList)
{
  this->m_type = ICommand::VIEWCHECKLIST_CMD;
  this->m_checkListView = checkList;
  this->m_previewDetailView = previewDetail;
}


ViewCheckListCommand::~ViewCheckListCommand()
{

}


void ViewCheckListCommand::Execute()
{
  
  // Set current command
  CurrentCommand::GetInstance()->SetCurrentCommand(this->m_type);
}


ICommand::CommandType ViewCheckListCommand::GetType()
{
	return this->m_type;
}